package io.renren.modules.project.service;

import io.renren.common.utils.Query;
import io.renren.common.utils.R;
import io.renren.modules.project.entity.ProjectEnclosureEntity;
import io.renren.modules.project.entity.ProjectEntityEntity;
import io.renren.modules.project.entity.ProjectExportEntity;

import java.text.ParseException;
import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-10-05 18:06:33
 */
public interface ProjectEntityService {
	
	ProjectEntityEntity queryObject(String id);
	
	List<ProjectEntityEntity> queryList(Map<String, Object> map,String userId,List<String> roleIdList);

	int queryProjectTotal(Map<String, Object> map,String userId,List<String> roleIdList);

	int queryProjectTotalLimt(Map<String, Object> map,String userId);

	List<ProjectEntityEntity> queryProjectAttachDoingTaskList(Map<String, Object> map,String userId,List<String> roleIdList);
	
	int queryTotal(Map<String, Object> map);
	
	String save(ProjectEntityEntity projectEntity);
	
	void update(ProjectEntityEntity projectEntity);
	
	void delete(String id);
	
	void deleteBatch(String[] ids,String cord);

	void taskPreservation(String projectId);

	ProjectEntityEntity queryInfoObject(String id);

	Map<String,Object> countProjectStatus(String userId,List<String> roleIdList);

	Map<String,Object> projectAnalysis(String year) throws ParseException;

	List<ProjectEntityEntity> queryProject(Map<String, Object> map,String userId);

	List<ProjectEnclosureEntity> queryEnclosure(Map<String, Object> map,String projectId);

	List<ProjectEnclosureEntity> queryEnclosureTotal(Map<String, Object> map,String projectId);

	//查询所有的项目
	List<ProjectEnclosureEntity> queryEnclosureList(String projectId);

	int receivingStatisticsTotal(Map<String, Object> map,String userId,List<String> roleIdList);

	List<ProjectEntityEntity> receivingStatistics(Map<String, Object> map,String userId,List<String> roleIdList);

	List<ProjectExportEntity> projectExport(Map<String, Object> map, String userId, List<String> roleIdList);


}
